package com.dalei.vdsmanager.management.system.action;

import com.dalei.vdsmanager.security.service.UserService;
import com.opensymphony.xwork2.ActionSupport;

public class RemoveUserAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2605823129762967797L;

	private UserService userService;

	private int id;

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		// return super.execute();
		userService.removeUser(id);
		return SUCCESS;
	}
}
